<template>
  <div id="app">
    <h1>{{ msg }}</h1>
    <School></School>
    <Student></Student>
  </div>
</template>

<script>
import School from './components/School'
import Student from './components/Student'

export default {
  name: 'App',
  data() {
    return {
      msg: 'Hello world!'
    }
  },
  components: {
    School,
    Student
  },
  methods: {
    appGetSchoolName(schoolName) {
      console.log(schoolName);
    },
    appGetStudentName(studentName, a, b, c) {
      console.log(studentName, a, b, c);
    },
    m1(){
      console.log('demo事件被触发了！');
    },
    show(){
      alert('hello!');
    }
  },
  mounted() {
  }
}
</script>

<style>
#app {
  background-color: gray;
  padding: 5px;
}
</style>
